package com.twf.a01test;

public class Test {
    public static void main(String[] args) {
        Person p = new Person("老王",24);
        Cat c = new Cat(2,"黄");
        Dog d = new Dog(3,"白");
        p.keepPet(c,"鱼");
        p.keepPet(d,"骨头");
        

    }
}
